<template>
	<view class="content_view">
		<u-navbar title-color="#FFFFFF" height="48" back-icon-color="#FFFFFF" :border-bottom="false" :is-fixed="true" :title="'维保工单需求'"
			:customBack="back"
		></u-navbar>
		<u-form :model="form" ref="form" label-width="100px" style="padding: 24rpx;">
			<u-form-item label-position="left" label="工单需求">
				<u-input type="textarea" :border="border" placeholder="如:设备损坏需更换" v-model="form.communicate"/>
			</u-form-item>

		</u-form>
		
		<u-button @click="submit" type="primary" style="margin: 24rpx;">提交</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				border:true,
				form:{
					ucId:'',
					communicate:''
				},
			}
		},
		methods: {			
			onLoad(e) {
				this.form.ucId=e.ucId
			},
			onShow() {
				
			},
			back(){
				window.native.back()
			},
			submit(){
			this.utils.request("/api/app/workOrder/communicate",this.form, "post", "app", true).then(res => {
                uni.navigateTo({
                	url: '/pages/index/workorder/maintenance/list'
                })
			}).catch(error => {
				console.log(error)
			})
			},
		
		}
	}
</script>

<style>

</style>
